package com.etc.service;

import java.util.List;

import com.etc.entity.Comment;
import com.etc.util.PageData;

public interface CommentService {

	boolean deleteByPrimaryKey(Integer comId);

	boolean insert(Comment comment);

	boolean insertSelective(Comment comment);

	Comment getByPrimaryKey(Integer comId);

	boolean updateByPrimaryKeySelective(Comment comment);

	boolean updateByPrimaryKey(Comment comment);

	PageData<Comment> getByPage(Integer page, Integer limit, String content);

	// 根据景点id查所属评论
	List<Comment> getByTraid(Integer traId);
	
	int countCommentByTraid(Integer traId);

}
